package com.dingwen.stusprbooes.service;

import org.elasticsearch.client.indices.CreateIndexResponse;

import java.io.IOException;

/**
 * elasticsearch service
 *
 * @author dingwen
 * 2021/6/27 21:09
 **/
public interface IndexService {

    /**
     * 创建索引
     *
     * @param index 指数
     * @return {@link CreateIndexResponse}
     * @throws IOException io exception
     */
    CreateIndexResponse createIndex(String index) throws IOException;
}
